<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML >

<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>项目管理系统-成员</title>

<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jQuery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
body {
	padding-top: 40px;
	background-color: #3D71BC;
	background-image: url("img/pro-bg1.jpg");
	background-repeat: no-repeat;
	width: 1005px;
}

.body-bgc {
	margin-top: 30px;
	padding-top: 20px;
	background-color: #bod4e5;
	background: url("img/wash-white-30.png") repeat scroll 0 0 transparent;
}

.con {
	margin-left: 100px;
}

.con-foot {
	margin: 25px 100px;;
}
</style>

</head>
<body>
	<%@ include file="include/topbar.jsp"%>
	<!--网页正文-->


	<div class="container well body-bgc">

		<div>
			<h3>添加新联系人</h3>
		</div>
		<hr />
		<!-- 下半部分 -->

		<div class="span6 con">

			<form action="savelinkman.action" method="post">
				<label>姓名</label> <input type="text" class="input-xlarge span5"
					name="linkman.name" /> <label>公司</label> <input type="text"
					class="input-xlarge span5" name="linkman.company" /> <label>手机</label>
				<input type="text" class="input-xlarge span5" name="linkman.moblie" />
				<label>固话</label> <input type="text" class="input-xlarge span5"
					name="linkman.tel" /> <label>邮箱</label> <input type="text"
					class="input-xlarge span5" name="linkman.email" /> <label>地址</label>
				<input type="text" class="input-xlarge span5" name="linkman.address" />
				<label>主页</label> <input type="text" class="input-xlarge span5"
					name="linkman.website" /> <label>微博</label><select
					class="input-xlarge span5" name="linkman.weibo">
					<option>新浪微博</option>
					<option>网易微博</option>
					<option>qq微博</option>
				</select> <label>简介</label>
				<textarea rows="3" class="input-xlarge span5" cols=""
					name="linkman.content"></textarea>

			</form>
			<div class="con-foot ">
				<a href="linkman.action" class="btn ">返回</a>
				<button type="submit" class="btn btn-success"
					style="margin-left:50px;">
					<i class="icon-th-large icon-white"></i>添加联系人
				</button>
			</div>

		</div>
	</div>
</body>



<script type="text/javascript">
	$(function() {
		$("input[name='linkman.name']").popover({
			title : "信息提示",
			content : "联系人姓名不能为空",
			trigger : "manual"
		});
		$("input[name='linkman.company']").popover({
			title : "信息提示",
			content : "联系人所属公司不能为空",
			trigger : "manual"
		});

		$("input[name='linkman.moblie']").popover({
			title : "信息提示",
			content : "联系人联系方式不能为空",
			trigger : "manual"
		});
		$("input[name='linkman.address']").popover({
			title : "信息提示",
			content : "联系人联系方式不能为空",
			trigger : "manual"
		});

		$("input[name='linkman.name']").click(function() {
			$(this).popover("hide");
		});
		$("input[name='linkman.company']").click(function() {
			$(this).popover("hide");
		});
		$("input[name='linkman.moblie']").click(function() {
			$(this).popover("hide");
		});
		$("input[name='linkman.address']").click(function() {
			$(this).popover("hide");
		});

		$("button").click(function() {
			if ($("input[name='linkman.name']").val() == "") {
				$("input[name='linkman.name']").popover("show");
				return false;
			}
			if ($("input[name='linkman.company']").val() == "") {
				$("input[name='linkman.company']").popover("show");
				return false;
			}
			if ($("input[name='linkman.moblie']").val() == "") {
				$("input[name='linkman.moblie']").popover("show");
				return false;
			}
			if ($("input[name='linkman.address']").val() == "") {
				$("input[name='linkman.address']").popover("show");
				return false;
			}

			$("form").submit();

		});

	});
</script>
</html>
